package operation;
import book.BookList;

import book.Book;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: wangj
 * Date: 2022-02-28
 * Time: 21:00
 */
public class DisplayOperation implements IOperation{
    public void work(BookList bookList) {
        System.out.println("显示图书！");
        int size=bookList.getUsedSize();
        for (int i = 0; i < size; i++) {
            Book book=bookList.getBookList(i);
            System.out.println(book);
        }
    }
}
